﻿//===============================================================================
// Copyright © Doan Manh Ha.  All rights reserved.
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
// FITNESS FOR A PARTICULAR PURPOSE.
// FOR MORE INFORMATION SEE http://hacodingjournal.blogspot.com
//===============================================================================

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BA2009.Utility
{
    /// <summary>
    /// Message entity
    /// </summary>
    public class Message
    {
        /// <summary>
        /// Code of message
        /// </summary>
        public string Code
        { get; set; }

        /// <summary>
        /// type of message
        /// </summary>
        public MSG_TYPE Type
        {
            get;
            set;
        }

        public CONFIRM Confirm
        {
            get;
            set;
        }
        

        /// <summary>
        /// content of message, example: Do you want to delete this user?
        /// </summary>
        public string Content
        {
            get;
            set;
        }

    
    }

    public enum CONFIRM
    { 
        /// <summary>
        /// Ok button
        /// </summary>
        OK,

        /// <summary>
        /// Yes/No buttons
        /// </summary>
        YESNO,

        /// <summary>
        /// Yes/No/Cancel buttons
        /// </summary>
        YESNOCANCEL,

         /// <summary>
        /// Unknown confirm type
        /// </summary>
        UNKNOWN,
    }

    /// <summary>
    /// type of message
    /// </summary>
    public enum MSG_TYPE
    {
        /// <summary>
        /// Question message
        /// </summary>
        QUESTION,
        /// <summary>
        /// Information message
        /// </summary>
        INFORMATION,
        /// <summary>
        /// Error message
        /// </summary>
        ERROR,
        /// <summary>
        /// Unknown messge type
        /// </summary>
        UNKNOWN,


    }

    /// <summary>
    /// type of question in the message
    /// </summary>
    public enum QUESTION_TYPE
    {
        /// <summary>
        /// Yes/No
        /// </summary>
        YESNO,
        /// <summary>
        /// Yes/No/Cancel
        /// </summary>
        YESNOCANCEL,
    }
}
